package com.example.haoqisystem.controller;

import com.example.haoqisystem.response.BaseResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "helloApi")
@RestController
@RequestMapping("/hello")
@RequiredArgsConstructor(onConstructor_ = {@Autowired})
public class helloController {
    @ApiOperation("测试")
    @GetMapping("/")
    public BaseResponse<String> hello(){
        return new BaseResponse<>("测试成功",true,"hello");
    }
}
